$(document).ready(function () {
    window.UrlPrefix = Settings.UrlPrefix.Client;
    Backbone.history.start({
        pushState: true,
        root: window.UrlPrefix
    });
    $(document).on("click", "a:not(.no-link, .ui-dialog-Namebar-close)", function (e) {
        e.preventDefault();
        if($(this).attr("href")) {
            var url = $(this).attr("href").replace(window.UrlPrefix, '');
            Backbone.history.navigate(url, {
                trigger: true
            });
        }
    });
    $.ajaxSetup({
        cache: true
    });
});
